package com.unknowpupil.web.service.impl;

import com.unknowpupil.web.base.impl.BaseCrudServiceImpl;
import com.unknowpupil.web.domain.BlockHeight;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.unknowpupil.web.mapper.BlockHeightMapper;
import com.unknowpupil.web.service.IBlockHeightService;
import tk.mybatis.mapper.entity.Example;

/**
 * @Classname: ${NAME}
 * @Author: <a> w10g </a>
 * @CreateDate: Create in 2019/11/6 14:22
 * @Description:
 * @Version: 1.0
 */
@Service
public class BlockHeightServiceImpl  extends BaseCrudServiceImpl<BlockHeight,BlockHeightMapper> implements IBlockHeightService {

    @Resource
    private BlockHeightMapper blockHeightMapper;


    @Override
    public BlockHeight getCurrencyBolckHeight(String currency) {
        Example example = new Example(BlockHeight.class);
        example.createCriteria().andEqualTo("currency",currency);
        return blockHeightMapper.selectOneByExample(example);
    }

}
